#include<bits/stdc++.h>
using namespace std;

main() {
	int a,b;
	cin>>a>>b;
	if(a<b)printf("%d %d\n",a,b);
	if(a>b)printf("%d %d\n",b,a);
	if(a==b)printf("%d %d\n",a,b);


}
